package com.econ.powercloud.ems.dal.entity.ext;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * iot_服务发送记录表
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-06-29
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class IotEdgePlatformSyncMsgDetail extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pid", type = IdType.AUTO)
    private Integer pid;

    private Integer parentPid;

    /**
     * 服务名称
     */
    private String header;

    /**
     * 服务名称
     */
    private String payload;

    /**
     * 消息类型： 1:iot主动发送到设备, 2:设备响应, 3：设备请求
     */
    private Integer msgType;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

}
